package dk.flashnotes.fffExample.pages {
	import dk.flashnotes.fff.page.DefaultPage;	import dk.flashnotes.fff.stateHolder.StateHolderEvent;	import dk.flashnotes.fff.tree.TreeNode;			/**
	 * @author Josef Kj�rgaard
	 */
	public class CustomDefaultPage extends DefaultPage {
		public function CustomDefaultPage(oTN : TreeNode) {
			super(oTN);
			oTN.addEventListener(StateHolderEvent.etSTATE_CHANGED, onStateChanged, false, 0, true);
		}
		

		override public function onCreatePartsDirect() : void {
			super.onCreatePartsDirect();
		}
		
		private function onStateChanged(event : StateHolderEvent) : void {
		}
		override protected function onPageClear() : void {
			oTN.removeEventListener(StateHolderEvent.etSTATE_CHANGED, onStateChanged);
			super.onPageClear();		}
	}
}
